#ifdef WITH_OPENGL

#include "render_control_opengl.h"

using namespace krryn::gui;
using namespace krryn::system;

render_control<opengl_tag>::render_control(const with &a_Initializer) 
: widget(create_widget_base<impl>()){
	m_Pimpl = get_impl<impl>();
	m_Pimpl->make(a_Initializer);
	m_Pimpl->post_make(*this, a_Initializer.get_parent());
}

void render_control<opengl_tag>::activate(){
	m_Pimpl->make_current();
}

void render_control<opengl_tag>::swap_buffers(){
	m_Pimpl->swap_buffers();
}

#endif